Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove MeshElementGroup deprecations #396

Merged
merged 5 commits into from
Mar 6, 2024

Conversation

alexfikl
Copy link
Collaborator

@alexfikl alexfikl commented Mar 5, 2024

All of these seem to be at least a year overdue and a quick grep showed that nothing is using them anymore (in main at least).

Inspired by #395.
Fixes #224.

@alexfikl
Copy link
Collaborator Author

alexfikl commented Mar 5, 2024

This enables flake8-isort too, but only fixes the two files that were modified here. I can make another PR that does a python -m isort over everything?

EDIT: Well that clearly doesn't work.. it just complains about all the other files. I'll remove that commit.

@alexfikl alexfikl force-pushed the remove-deprecated-element-groups branch from 4c03df5 to 982194b Compare March 5, 2024 19:17
@inducer
Copy link
Owner

inducer commented Mar 5, 2024

I'm all in favor (also of getting the isort done).

@alexfikl
Copy link
Collaborator Author

alexfikl commented Mar 5, 2024

I'm all in favor (also of getting the isort done).

Got it! This still needs a bit of work apparently, so I'll ping you when it's done.

@alexfikl alexfikl marked this pull request as draft March 5, 2024 19:47
@alexfikl alexfikl force-pushed the remove-deprecated-element-groups branch 2 times, most recently from 25b861a to bd17454 Compare March 5, 2024 20:28
@alexfikl alexfikl force-pushed the remove-deprecated-element-groups branch from bd17454 to 9916d68 Compare March 5, 2024 21:31
@alexfikl alexfikl marked this pull request as ready for review March 5, 2024 21:58
@alexfikl
Copy link
Collaborator Author

alexfikl commented Mar 5, 2024

@inducer This seems to be passing now!

The last 3 commits are fairly big, but just move things around due to isort and some cleaning up in the firedrake tests (it now uses actx_factory!), so probably better to look at just 4e71cfa.

Copy link
Owner

@inducer inducer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! Just one wrinkle, then this is good to go.

meshmode/mesh/__init__.py Show resolved Hide resolved
meshmode/mesh/__init__.py Show resolved Hide resolved
test/test_firedrake_interop.py Show resolved Hide resolved
Removes:
* BTAG_PARTITION.part_nr
* MeshElementGroup.element_nr_base and node_nr_base
* MeshElementGroup.copy
* NodalAdjacency.copy
* FacialAdjacencyGroup.copy
@alexfikl alexfikl force-pushed the remove-deprecated-element-groups branch from 9916d68 to 65ef869 Compare March 6, 2024 07:01
@alexfikl
Copy link
Collaborator Author

alexfikl commented Mar 6, 2024

@inducer Re-added the missing note, so this should be ok now!

@inducer inducer merged commit 972586d into inducer:main Mar 6, 2024
12 checks passed
@inducer
Copy link
Owner

inducer commented Mar 6, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Element groups shouldn't have to change when joining a mesh/discretization
2 participants